package com.wufan.day03;

/**
 * @author SongWufan
 * @date 2021/3/6 15:58
 */
public class Person {
    /**
     * 属性
     */
    public String name;
    public int age = 1;
    boolean isMale;

    /**
     * 方法
     */
    public void eat(){
        System.out.println("吃饭");
    }

    public void sleep(){
        System.out.println("睡觉");
    }

    public void talk(String language){
        System.out.println("语言："+language);
    }
}
